home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / program / mkdpnd11.lha / MkDepend-1.1 / DMakefile next >
Makefile  |  1995-10-14  |  2KB  |  70 lines

  1. # $VER: DMakefile 1.1 (12-Oct-95)
  2. #--------------------------------------------------------------------------
  3. # Makefile for MkDepend
  4. #
  5. # Written for use with DICE 3 and its DMake 2.4
  6. #--------------------------------------------------------------------------
  7. # Available targets:
  8. #  MkDepend: creates the program.
  9. #  clean   : deletes all objects, test.#? and a.out.
  10. #  clobber : same as clean, also deletes the executable.
  11. #  depend  : updates the Makefile by the source dependencies.
  12. #  archive : creates an archive MkDepend-<version>.lha
  13.  
  14. # Release version, should match the version number in main.c and Makefile.
  15. VERSION= 1.1
  16.  
  17. #--------------------------------------------------------------------------
  18. # Source files
  19. SOURCES= main.c reader.c nodes.c
  20.  
  21. # Other files to archive
  22. OTHER= $(SOURCES:*.c:%1.h) Makefile DMakefile \
  23.        HISTORY MkDepend.doc MkDepend.readme
  24.  
  25. # Object files to generate
  26. OBJECTS= $(SOURCES:*.c:obj/%1.o)
  27.  
  28. # Check prototypes on compilation
  29. CFLAGS= -O "" -proto
  30.  
  31. #--------------------------------------------------------------------------
  32.  
  33. MkDepend : obj $(OBJECTS)
  34.     dcc -o %(left) %(right:*.o)
  35.  
  36. $(OBJECTS) : $(SOURCES)
  37.     dcc $(CFLAGS) -o %(left) -c %(right)
  38.  
  39. clean :
  40.     delete #?.o test.#? a.out
  41.     delete obj/#?
  42.  
  43. clobber : clean
  44.     delete MkDepend MkDepend-#?.readme MkDepend-#?.lha
  45.     delete obj all
  46.  
  47. depend : $(SOURCES)
  48.     MkDepend $(SOURCES) -p.c:obj/%n.o -fDMakefile
  49.  
  50. archive : depend MkDepend
  51.     makedir MkDepend-$(VERSION)
  52.     copy MkDepend $(SOURCES) $(OTHER) MkDepend-$(VERSION) clone
  53.     copy MkDepend.readme MkDepend-$(VERSION).readme
  54.     delete MkDepend-$(VERSION).lha
  55.     lha -axmr a MkDepend-$(VERSION).lha MkDepend-$(VERSION)
  56.     delete MkDepend-$(VERSION) all quiet
  57.     echo "Archive created."
  58.  
  59. obj :
  60.     makedir obj
  61.  
  62. # --- DO NOT MODIFY THIS LINE -- AUTO-DEPENDS FOLLOW ---
  63. obj/main.o :  main.c nodes.h reader.h
  64.  
  65. obj/nodes.o :  nodes.c nodes.h
  66.  
  67. obj/reader.o :  reader.c reader.h
  68.  
  69. # --- DO NOT MODIFY THIS LINE -- AUTO-DEPENDS PRECEDE ---
  70.